<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {% block header %}
        <title>Base</title>
        <meta name="description" content="">
        <meta name="keywords" content="">
    {% endblock %}
    <meta name="author" content="jinxiu89@163.com">
    <link href="{{ url_for("static",filename="main/favicon.ico") }}" rel="icon" type="image/png">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="{{ url_for("static",filename="main/style/style.css") }}">
    {% block sking %}
        <!-- Custom styles for this template -->

    {% endblock %}
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body style="background: #f3f3f3">
{% block navbar %}
    <nav class="navbar navbar-inverse navbar-fixed-top site-navbar">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{{ url_for("main.index") }}">Wones</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="{{ url_for("main.index") }}">首页</a>
                    </li>
                    {% for vo in category %}
                        <li>
                            <a href="{{ url_for("main.article_lists",name=vo.name) }}">{{ vo.name }}</a>
                        </li>
                    {% endfor %}
                </ul>
            </div>
            <!--/.nav-collapse -->
        </div>
    </nav>
{% endblock %}
{% block nav %}
    <div class="" style="background: #ffffff;padding-top: 50px;margin-bottom: 15px">
        <div class="container">
            <ol class="breadcrumb">
                <li><a href="/">首页</a></li>
                <li><a href="#">Library</a></li>
                <li class="active">Data</li>
            </ol>
        </div>
    </div>
{% endblock %}
{% block banner %}
    <!-- Jumbotron -->
{% endblock %}
<main class="benefits container" style="background: #fff">
    <div class="row">
        {% block main %}
            <!--页面主体在这里展开-->
        {% endblock %}
        {% block main_left %}
            <div class="col-xs-12 col-md-4" style="background: #ffffff">
                <div style="padding: 15px;background: #fff">
                    <h4 style="padding-bottom: 5px;border-bottom: 1px solid #f2f2f2">最热门文章</h4>
                    <ul class="nav">
                        {% for vo in hot_article %}
                            <li class=""><a href="{{ url_for("main.article_details",id=vo.id) }}"
                                            style="display: block;padding: 4px 0">{{ vo.title }}</a></li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
            <div class="col-xs-12 col-md-4" style="background: #ffffff">
                <div style="padding: 15px;margin-top:15px;background: #fff">
                    <h4 style="padding-bottom: 5px;border-bottom: 1px solid #f2f2f2">好文推荐</h4>
                    <ul class="nav">
                        {% for vo in top_article %}
                            <li><a href="{{ url_for("main.article_details",id=vo.id) }}"
                                   style="display: block;padding: 4px 0">{{ vo.title }}</a></li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
            <div class="col-xs-12 col-md-4" style="background: #ffffff">
                <div style="padding: 15px;margin-top:15px;background: #fff">
                    <h4 style="padding-bottom: 5px;border-bottom: 1px solid #f2f2f2">我的朋友</h4>
                    <ul class="nav">
                        {% for vo in friends %}
                            <li>
                                <a href="{{ vo.website }}"
                                   style="display: block;padding: 4px 0">{{ vo.name }}</a>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
        {% endblock %}
    {% block page %}
    {% endblock %}
    </div>
</main>
{% block footer %}
    <!-- Site footer -->
    <footer class="footer" style="margin-top: 40px;padding: 40px 0;background: #dddddd">
        <div class="container" style="text-align: center">
            <p>
            <ul class="list-inline">
                {% for vo in friends %}
                    <li><a href="{{ vo.website }}"
                           style="display: block;padding: 4px 0" target="_blank">{{ vo.name }}</a></li>
                {% endfor %}
            </ul>
            </p>
            <p>&copy; Wones 2013-{{ copy_right }}</p>
            <p>Powered by Flask </p>
        <p><a href="http://www.beian.miit.gov.cn/" target="_blank" class="text">粤ICP备17077389号-1<br/></a></p>
        </div>
    </footer>
{% endblock %}
<script src="https://cdn.bootcss.com/highlight.js/8.4/highlight.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="//js.users.51.la/19666025.js"></script>
{{ moment.include_moment() }}
{{ moment.lang('zh-CN') }}
{% block js %}{% endblock %}
</body>
</html>